package type;

/**
 * Implémentation d'un type dateTime
 * 
 * @author Kevin Pozderec, Faycal Abka
 *
 */
public class MyDate implements IMyDate{
	public String year,month,day,hour,minute,second;
	
	public MyDate(String y,String m,String d,String h,String min,String s){
		year=y;
		month=m;
		day=d;
		hour=h;
		minute=min;
		second=s;
	}

	@Override
	public String getYear() {
		return year;
	}

	@Override
	public String getMonth() {
		return month;
	}

	@Override
	public String getDay() {
		return day;
	}

	@Override
	public String getHour() {
		return hour;
	}

	@Override
	public String getMinute() {
		return minute;
	}

	@Override
	public String getSecond() {
		return second;
	}

	@Override
	public void setYear(String c) {
		year=c;
	}

	@Override
	public void setMonth(String c) {
		month=c;
	}

	@Override
	public void setDay(String c) {
		day=c;
	}

	@Override
	public void setHour(String c) {
		hour=c;
	}

	@Override
	public void setMinute(String c) {
		minute=c;
	}

	@Override
	public void setSecond(String c) {
		second=c;
	}
	
}
